package com.blb.zycommunity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 评论表
 * </p>
 *
 * @author chenheng
 * @since 2023-11-20
 */
@TableName("zy_comment")
@Data
@ApiModel(value = "ZyComment对象", description = "评论表")
public class ZyComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private String commentId;

    @ApiModelProperty("创建人者")
    private String createBy;

    @ApiModelProperty("更新者ID")
    private Long updateBy;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("父级ID")
    private Long parentId;

    @ApiModelProperty("删除状态0默认1删除")
    private Integer delFlag;

    @ApiModelProperty("社区互动ID")
    private Long interactionId;

    @ApiModelProperty("创建人ID")
    private Long userId;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("划属Id")
    private Long rootId;

    @TableField(exist = false)
    private ZyOwner zyOwner;

    @TableField(exist = false)
    private ZyCommunityInteraction zyCommunityInteraction;

    @TableField(exist = false)
    private ZyComment childrenComment;

    @TableField(exist = false)
    private ZyOwner childrenOwner;
}
